#ifndef SCANNERHELPER_H
#define SCANNERHELPER_H

#include <QObject>
#include <qserialport.h>
#include <QSerialPortInfo>


class ScannerHelper : public QObject
{
    Q_OBJECT
    Q_DISABLE_COPY( ScannerHelper )
public:
    static ScannerHelper *instance();
private:
    explicit ScannerHelper(QObject *parent = nullptr);
public slots:
    QString initScanner();
private slots:
    void receiveInfo();
signals:
    void recvScannerData(const QString data);
private:
    QSerialPort* m_serialPort;
};

#endif // SCANNERHELPER_H
